package StudyCode.summary.mycollection;

import java.util.Collection;
import java.util.Hashtable;
import java.util.Iterator;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class GetCollectionOfValuesContainedInHashtable {
	public static void main(String[] args) {
		Hashtable ht = new Hashtable();
		ht.put("1", "One");
		ht.put("2", "Two");
		ht.put("3", "Three");

		Collection c = ht.values();

		System.out.println("Hashtable 值集合的元素 :");

		Iterator itr = c.iterator();
		while (itr.hasNext())
			System.out.println(itr.next());

	}
}
